package com.bringway.global.dao;

import java.util.Collection;
import java.util.List;

import com.bringway.framework.domain.SysAttechment;
import com.bringway.framework.domain.SysBizAtt;

import net.sf.json.JSONObject;

public interface SysAttechmentDao {
	public Long createSysAttechment(SysAttechment sysAttechment);
	public Collection listAllAttByBizId(String bizId);
	public SysAttechment getSysAttechment(String id);
	public SysAttechment getSysAttechmentByFileName(String fileName);
	public void createBizAtt(SysBizAtt sysBizAtt);
	public void delAttByBizId(String bizId);
	public void delAttByBizId(Long bizId);
	public void delAttByBizId(Long bizId,String item);
	public void delAttByFileName(String fileName);
	public void createBizAtt(List list);
	public void delAttByBizId(List list);
	public Collection listAllAttByBizId(Long bizId, String item);
	public void copySyaAttechment(Long bizId, Long beforeBizId) ;
	public Collection listIdsByNames(String fileName);
	public Collection listAllAtt(JSONObject params);
	public int getAllAtt(JSONObject params);
}
